/** 
 *  @file       TFT_LCD.h
 *  @brief      240*432 TFT液晶驱动程序
 *  @author      
 *  @version    
 *  @date       2015-10 
 */

#ifndef __TFT_LCD_H
#define __TFT_LCD_H

#include "config.h"
//#include "charcode.h"       /**< 汉字字库 */

//---显示图片，定义这个---//
#define PICTURE_SHOW

//---显示32*29的汉字---//
#define CHAR_32x29_CHN_SHOW

//---显示19x24的汉字---//
#define CHAR_19x24_CHN_SHOW

//---显示ASCII码对应的字符---//
#define CHAR_16x24_ASCII_SHOW

/** RGB颜色定义 */
#define WHITE          0xFFFF
#define BLACK          0x0000
#define GREY           0xF7DE
#define BLUE           0x001F
#define BLUE2          0x051F
#define RED            0xF800
#define MAGENTA        0xF81F       /**< 品红 */
#define GREEN          0x07E0
#define CYAN           0x7FFF
#define YELLOW         0xFFE0	
#define HYALINE        0x0001		 /**< 透明 */

//---定义全局变量---//
void TFT_config(unsigned int background_color);
void TFT_dot(unsigned int x, unsigned int y, unsigned int color);  
void GUI_Box(unsigned int sx, unsigned int sy, unsigned char ex, unsigned int ey, unsigned int color);   
void TFT_draw_line(unsigned int start_x, unsigned int start_y, unsigned char end_x, unsigned int end_y, unsigned int color);
void TFT_write_char_32x29_CHN(unsigned int x, unsigned int y, unsigned char *chn, unsigned int word_color, unsigned int background_color);	 
void TFT_write_char_19x24_CHN(unsigned int x, unsigned int y, unsigned char *chn, unsigned int word_color, unsigned int background_color);	 
void TFT_show_picture(unsigned int x, unsigned int y, unsigned char wide, unsigned int high);
void TFT_write_16x24_ASCII(unsigned int x, unsigned int y, unsigned char *p, unsigned int word_color, unsigned int background_color);

#endif
